package com.eig.courseweb;

import com.eig.courseweb.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author ：StudentLsj（李世界）
 * @date ：Created in 2022/12/30 上午 11:48
 * @description：
 * @modified By：
 * @version:
 */
@SpringBootApplication(scanBasePackages ={"com.eig.courseweb","com.eig.security","com.eig.common.config"} )
@EnableSwagger2
@MapperScan(basePackages = "com.eig.courseweb.dao")
public class CourseWebApp {
    public static void main(String[] args) {
        SpringApplication.run(com.eig.courseweb.CourseWebApp.class,args);
    }
    @Bean
    public IdWorker idWorker() {
        return new IdWorker(0,0);
    }
}
